﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Bird.Core.Domain.Members;
namespace Bird.Data.Mapping.Member
{
    public partial class MemberMap : EntityTypeConfiguration<Bird.Core.Domain.Members.Member>
    {
        public MemberMap()
        {
            this.ToTable("Members");
            this.HasKey(x => x.Id);
            this.Property(x => x.Username).HasMaxLength(50);
            this.Property(x => x.Email).HasMaxLength(300); 
            this.Property(x => x.MobilePhone).HasMaxLength(20);
            this.Property(x => x.Password);
            this.Property(x => x.PasswordSalt);
            
        }
    }
}
